import request from '@/utils/request'

// 查询会议列表
export function listConference(query) {
  return request({
    url: '/approval/conference/list',
    method: 'get',
    params: query
  })
}

// 查询会议详细
export function getConference(id) {
  return request({
    url: '/approval/conference/' + id,
    method: 'get'
  })
}

// 新增会议
export function addConference(data) {
  return request({
    url: '/approval/conference',
    method: 'post',
    data: data
  })
}

// 修改会议
export function updateConference(data) {
  return request({
    url: '/approval/conference',
    method: 'put',
    data: data
  })
}

// 删除会议
export function delConference(id) {
  return request({
    url: '/approval/conference/' + id,
    method: 'delete'
  })
}
// 消息状态修改
export function changeNoticeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/approval/conference/changeStatus',
    method: 'put',
    data: data
  })
}